package array;

public class a3 {
	public static void main(String[] args) {
		for (int i = 100; i <= 999; i++) {
			int n=i/100 , u=i%100/10 , m=i%10;
			if (i==n*n*n+u*u*u+m*m*m) {
				System.out.println(i);
			}
		}
	}
}
